package com.lywz.biz.service.food;

import java.util.List;

import com.lywz.biz.common.entity.goodfood.ClassicFood;
import com.lywz.core.exception.SSException;

public interface ClassicFoodService {

    /**
     * 根据id获取一个classicFood
     * @param classicFoodId
     * @return
     * @throws SSException
     */
    public ClassicFood getOneClassicFoodById(int classicFoodId) throws SSException;

    public List<ClassicFood> getTopTenList(int limit) throws SSException;

    /**
     * 按照权重排序 获得经典美食的所有食物的列表
     * 
     * @return
     * @throws SSException
     */
    public List<ClassicFood> getAllClassicFoodList() throws SSException;

    /**
     * 按照id删除某一个classicFood
     * 
     * @param classicFoodId
     * @return
     * @throws SSException
     */
    public boolean deleteOneClassicFoodById(int classicFoodId) throws SSException;

    /**
     * 
     * 修改一个classicFood实体
     * @param classicFood
     * @return
     * @throws SSException
     */
    public boolean updateClassicFood(ClassicFood classicFood) throws SSException;

    /**
     * 添加一个classicFood实体
     * @return
     * @throws SSException
     */
    public boolean addNewClassicFood(ClassicFood classicFood) throws SSException;
}
